<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br">

<head>

    <title>myGestão :: Sistema de Gestão</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <?php echo $html->css('estilo'); ?>
    
    <!-- Grid -->
    <script type="text/javascript" src="<?php echo $this->webroot;?>js/grid.js"></script>

    <!-- Tooltip -->
    <script type="text/javascript" src="<?php echo $this->webroot;?>js/jquery-1.2.2.pack.js"></script>
    <script type="text/javascript" src="<?php echo $this->webroot;?>js/htmltooltip.js"></script>
    
    <!-- JQuery -->
    <script type="text/javascript" src="<?php echo $this->webroot;?>js/jquery-1.6.2.min.js"></script>
    
    <!-- Validacao -->
    <script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.trule.common-min.js"></script>
    <script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.trule-min.js"></script>
    <script type="text/javascript" src="<?php echo $this->webroot;?>js/validate.js"></script>
    <script type="text/javascript" src="<?php echo $this->webroot;?>js/messages.pt-br.js"></script>

</head>

<body>

    <div id="div_cabecalho">
        <div id="logo"></div>
        <?php if (isset($usuario_logado)){ ?>
            <div id="rigth"></div>
            <div id="box"><div id="legenda"><?php echo '<b>Usuário:</b> '.$usuario_logado; ?></div></div>
         <?php } ?>
        <div id="menu">
            <ul>
                <?php require_once(VIEWS.'layouts/menu.ctp') ?>
            </ul>
        </div>
    </div>

    <div id="div_conteudo">

        <div class="mensagem_erro">
            <?php
            $tipo = $session->read('Message.mensagem.params.tipo');
            if ($tipo) {
                if ($tipo == 'S') {
                    echo '<div id="msgsucesso" class="msg_sucesso">';
                    echo $session->flash('mensagem');
                    echo '</div>';
                } else {
                    echo '<div id="msgerro" class="msg_erro">';
                    echo '<ul><li>';
                    echo $session->flash('mensagem');
                    echo '</li></ul>';
                    echo '</div>';
                }
            } else {
                echo '<div id="msgerro" style="display:none" class="msg_erro">';
                echo '<ul></ul>';
                echo '</div>';
                echo '<div id="msgaviso" style="display:none" class="msg_aviso">Verifique o registro antes de confirmar a operação.</div>';
            }
            ?>
        </div>

        <?php echo $content_for_layout; ?>
        
        <?php //echo $this->element('sql_dump'); ?>

    </div>
    

</body>
    
</html>
    
    
    
    